<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      /* @keyframes move {
        from {
          transform: translateX(0);
        }
        to {
          transform: translateX(800px);
        }
      } */

      @keyframes move {
        0% {
          transform: translate(0, 0);
        }
        25% {
          transform: translate(1000px, 0);
        }
        50% {
          transform: translate(1000px, 500px);
        }
        75% {
          transform: translate(0px, 500px);
        }
        100%{
          transform: translate(0, 0);
        }
      }

      div {
        width: 100px;
        height: 100px;
        background-color: pink;
        animation-name: move;
        animation-duration: 2s;
      }
    </style>
  </head>
  <body>
    <div></div>
  </body>
</html>
